package java68_6;

public class Bus {
    private String lineno="233";
    private String from,to;
    public Bus(String l,String f,String t){
        lineno=l;
        from=f;
        to=t;
    }
    public void run(){
        System.out.println("本车"+lineno+",从"+from+"开往"+to+",请从前门上车,后门下车!");
    }

    public String getLineno() {
        return lineno;
    }
}
